<template>
      <h1>商品后台操作系统</h1>
  <div class="setone-container">
    <div class="button-group">
      <el-button type="primary" @click="navigateTo('/backend/Updataitem')">修改商品</el-button>
      <el-button type="danger" @click="navigateTo('/backend/deleteitem')">删除商品</el-button>
      <el-button type="success" @click="navigateTo('/backend/insteritem')">新增商品</el-button>
      <el-button type="success" @click="goBack">返回</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';

const router = useRouter();

const navigateTo = (path: string) => {
  router.push(path);
};

const goBack = () => {
  router.back();
};
</script>

<style scoped>
.setone-container {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* min-height: 80vh; */
}

.button-group {
  display: flex;
  gap: 20px;
}
</style>